
#ifndef pingpong_DETECT_H
#define pingpong_DETECT_H

#include <iostream>
#include "sample_comm_nnie.h"

#if __cplusplus
extern "C" {
#endif



typedef struct tagIPC_IMAGE {
    HI_U64 u64PhyAddr;
    HI_U64 u64VirAddr;
    HI_U32 u32Width;
    HI_U32 u32Height;
} IPC_IMAGE;

class pingpong_detect {
public:
    HI_S32 pingpongDetectLoad(uintptr_t* model);
    HI_S32 pingpongDetectUnload(uintptr_t model);
    /*
     * 乒乓球检测推理
     * pingpong detect calculation
     */
    HI_S32 pingpongDetectCal(uintptr_t model, VIDEO_FRAME_INFO_S *srcFrm, VIDEO_FRAME_INFO_S *dstFrm);
};

#ifdef __cplusplus
}
#endif
#endif